home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / Beginners Mac Assembly - ed.srd / Beginners Mac Assembly - ed.srd.rsrc / PICT_32.png < prev    next >
Portable Network Graphic  |  1996-08-28  |  110KB  |  816x1056  |  8-bit (256 colors)
OCR: depeadlirg .onghe size. An interbat iooanteridetphracksoithmott atxstuthRrdaacl misgimply equatedlge the counter. For example: fred: stu cath: rs.w If these are the offsets for the variables that are accessed off a6 then is the same as stu(a6) is 4(a6) and cath(a6) is 6(a6) you because words and longs are always placed on pioM boundaries. For more information see the Fantasm user manual more specit fically see A5 global variables Here example written to use position independent code: * ****** *FIL ENAME EXAMPL E3 *DESCRIPTION: PROGR AM TO ADD NUMBERS TOGETHER AND PRINTTHE RESULT IN A WINDOW WRIT TEN IN POSITION INDEPENDENT CODE EXAMPLE3: LEA EX3 VARS(PC),A6 *A6 POINTS TO OUR VARIABLES BSR INIT CURSOR *part of io lib.s LEA WINDOW TITI E(PC) .AO BSR OPEN WINDOW *PART OF LIB.S MOVE.L AO WINDO ...